package com.pliu.sqlSession;

import com.pliu.pojo.Configuration;
import com.pliu.pojo.MappedStatement;

import java.sql.SQLException;
import java.util.List;

/**
 * @ClassName Executor
 * @Description 执行jdbc的一层
 * @Author pliu
 * @Date 2020/6/21 16:33
 * @Version 1.0
 **/
public interface Executor {
    public <E> List<E> query(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception;
    public int update(Configuration configuration, MappedStatement mappedStatement, Object... params) ;
}
